package com.kingyea.app.market.versionInfo.dao;

import com.kingyea.app.market.appBaseInfo.bean.AppBaseInfo;
import com.kingyea.app.market.versionInfo.bean.VersionInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description VersionInfoMapper
 * @date Created in 2018-02-11 11:43:16
 */
public interface VersionInfoMapper {

    /**
     * 通过ID获取对象
     */
    VersionInfo getById(@Param("id") String id);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") String id);

    /**
     * 更新对象
     */
    void update(VersionInfo obj);

    /**
     * 更新对象
     */
    int updateForCondition(VersionInfo obj);

    /**
     * 保存对象
     */
    void save(VersionInfo obj);

    /**
     * 查询列表
     */
    List<VersionInfo> list(Map<String, Object> version);

    List<VersionInfo> getListByVersionType(String versionType);

    List<AppBaseInfo> versionList(Map<String, Object> appBaseInfo);

    VersionInfo getCurrentVersionByAppCode(@Param("appCode") String appCode, @Param("versionType") Integer versionType);

    List<VersionInfo> getCurrentVersionListByAppCode(String appCode);

    Integer deletesByAppCode(String appCode);
}
